package com.bw.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.domain.SysPost;
import com.bw.mapper.SysPostMapper;
import com.bw.service.SysPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysPostServiceImpl implements SysPostService {
    @Autowired
    SysPostMapper sysPostMapper;

    @Override
    public List<SysPost> listAll(SysPost sysPost) {
        return sysPostMapper.listAll(sysPost);
    }

    @Override
    public boolean save(SysPost sysPost) {
        return sysPostMapper.save(sysPost);
    }

    @Override
    public boolean update(SysPost sysPost) {
        return sysPostMapper.update(sysPost);
    }

    @Override
    public boolean removeById(Integer postId) {
        return sysPostMapper.delete(postId);
    }

    @Override
    public List<SysPost> list() {
        return sysPostMapper.list();
    }

    @Override
    public void deletes(List<String> asList) {
        sysPostMapper.deletes(asList);
    }

    @Override
    public List<SysPost> postList() {
        return sysPostMapper.postList();
    }

    @Override
    public void insertUsers(SysPost sysPost) {
        sysPostMapper.insertUsers(sysPost);
    }

    @Override
    public SysPost postById(Integer id) {
        return sysPostMapper.postById(id);
    }

}
